package com.bristua.mall.user.enums;

/**
 * Created by Administrator on 2019/3/25.
 */
public enum UserCode {
    USER_ISEXIST(2001,"该用户已经注册过"),
    USER_NOT_UPDATE_PARENT_USER(2004,"普通用户只能修改一次邀请码"),
    VIP_USER_NOT_UPDATE_PARENT_USER(2004,"VIP用户只能修改2次邀请码"),
    USER_INVITE_CODE_NOT_FIND(2000,"该邀请码不存在"),
    USER_INVITE_CODE_NOT_SELF(2003,"不能邀请自己"),
    NOT_VIP_USER_ONE(2001,"普通用户只能邀请1人"),
    USER_HAS_CHANGE_INVITE(2002,"您已经是他的会员了"),
    COLLECTION_GOODS_SUCCESS(0,"收藏成功"),
    CANCEL_COLLECTION_GOODS_SUCCESS(0,"取消收藏成功"),
    USER_BIND_PHONE_SUCCESS(0,"完善成功"),
    VIP_CHARGE_ORDER_IS_NOT_EXIST(2004,"充值VIP订单不存在"),
    VIP_CHARGE_ORDER_AMT_EXCEPTION(2005,"充值VIP金额异常"),
    APPLY_SUCCESS(0,"申请成功"),
    CANCEL_GOODS_COLLECTION(0,"取消成功"),
    USER_CHARGE_SEND_ORDER_SUCCESS(0,"充值下单成功")
    ;
    private UserCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
